package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 鑫仔
 * @Date:  2025/7/23 18:49
 * @Description: 
 **/

/**
 * 订单明细表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_order_detail")
public class OrderDetail implements Serializable {
    /**
     * 明细ID
     */
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Integer detailId;

    /**
     * 订单ID
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 商品ID
     */
    @TableField(value = "prod_id")
    private Integer prodId;

    /**
     * 商品信息ID
     */
    @TableField(value = "info_id")
    private Integer infoId;

    /**
     * 购买数量
     */
    @TableField(value = "buy_num")
    private Integer buyNum;

    /**
     * 购买价格
     */
    @TableField(value = "buy_price")
    private Double buyPrice;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}